#define LAMINATOR_COMM				0

#define HEADER						_T("CMD")
#define EQPID						_T("EQPID")
#define WAFERID						_T("WAFERID")
#define SEQ							_T("SEQ")
#define MODE						_T("MODE")
#define LOTID						_T("LOTID")
#define ALARMID						_T("ALARMID")
#define ALARM						_T("ALARM")
#define RESULTOK					_T("RESULTOK")
#define RESULTMSG					_T("RESULTMSG")
#define RECIPEID					_T("RECIPEID")
#define WAFERQTY					_T("WAFERQTY")
#define SLOT						_T("SLOT")
#define DESC						_T("DESC")

#define MODE_ON						_T("ON")
#define MODE_OFF					_T("OFF")

#define	CMD_AGV_ON					_T("AGV_ON")
#define	CMD_AGV_OFF					_T("AGV_OFF")
#define CMD_PORT_UNLOADING			_T("UNLOADING")
#define CMD_PORT_LOADING			_T("LOADING")
#define CMD_BCR_READ				_T("BCR")
#define CMD_READY_TO_WORK			_T("READY_TO_WORK")
#define CMD_WAFER_WORK_START		_T("WAFER_START")
#define CMD_WAFER_END				_T("WAFER_END")
#define CMD_WORK_END				_T("WORK_END")
#define CMD_ALARM					_T("ALARM")

#define RET_NO_RETURN					0
#define RET_AGV_OK						1
#define RET_AGV_FAILED					2
#define RET_PORT_UNLOADING_OK			3
#define RET_PORT_UNLOADING_FAILED		4
#define RET_PORT_LOADING_OK				5
#define RET_PORT_LOADING_FAILED			6
#define RET_BCR_READ_OK					7
#define RET_BCR_READ_FAILED				8
#define RET_READY_TO_WORK_OK			9
#define RET_READY_TO_WORK_FAILED		10
#define RET_WAFER_WORK_START_OK			11
#define RET_WAFER_WORK_START_FAILED		12
#define RET_WAFER_WORK_COMPLETE_OK		13
#define RET_WAFER_WORK_COMPLETE_FAILED	14
#define RET_WORK_COMPLETE_OK			15
#define RET_WORK_COMPLETE_FAILED		16
#define RET_ALARM_OK					17
#define RET_ALARM_FAILED				18
#define RET_UNKNOWN						19

#define CMD_OFFSET						4
#define RESULTOK_OFFSET					9
#define RESULTMSG_OFFSET				9

#define RESP_AGV						_T("AGV_REP")
#define RESP_PORT_UNLOADING				_T("UNLOADING_REP")
#define RESP_PORT_LOADING				_T("LOADING_REP")
#define RESP_BCR						_T("BCR_REP")
#define RESP_READY_TO_WORK				_T("READY_TO_WORK_REP")
#define RESP_WAFER_WORK_START			_T("WAFER_START_REP")
#define RESP_WAFER_WORK_COMPLETE		_T("WAFER_COMP_REP")
#define RESP_WORK_COMPLETE				_T("WORK_COMP_REP")
#define RESP_ALARM						_T("ALARM_REP")

#define RESULTMSG_OK					_T("OK")
#define RESULTMSG_NG					_T("NG")

#define MAX_TOKEN						50
//------------------------------------------------
#define	WM_SOCKDATA_RECEIVE		WM_USER + 100
#define	WM_SOCKDATA_CLOSE		WM_USER + 101
#define	WM_SOCKDATA_CONNECT		WM_USER + 102
// -----------------------------------------------
//--------------------------------------- Response
#define	OK_RESPONSE			0
#define	ERROR_RESPONSE	-10
#define NOT_CONNECT		-11
#define NO_IP			-12
#define DATA_ERROR		-13
#define FILE_NO			-14
#define FILE_READ_ERROR	-15
#define READ_ERROR		-16